package play.modules.fbauth;

import net.rehman.fbauth.FbAuthHelper;
import play.Play;

import java.io.IOException;
import java.util.Map;

/**
 * Created by IntelliJ IDEA.
 * User: Jacky
 * Date: 17/01/2011
 * Time: 12:18 PM
 * To change this template use File | Settings | File Templates.
 */
public class FbAuth
{

    public static Map<String, Object> getFbUser() throws IOException, FbAuthException
    {
        return Play.plugin( FbAuthPlugin.class ).getFbUser();
    }

    public static void clearCachedSignRequest()
    {
        Play.plugin( FbAuthPlugin.class ).clearCachedSignRequest();
    }

    public static String getCanvasRedirectUrl()
    {
        return Play.plugin( FbAuthPlugin.class ).getCurrentCanvasUrl();
    }

    public static FbAuthHelper getFbAuthHelper()
    {
         return Play.plugin( FbAuthPlugin.class ).getFbAuthHelper();
    }

}
